package com.ruoyi.web.controller.mall.orderShipping.service.impl;

import com.ruoyi.web.controller.mall.orderShipping.domain.OrderShipping;
import com.ruoyi.web.controller.mall.orderShipping.mapper.OrderShippingMapper;
import com.ruoyi.web.controller.mall.orderShipping.service.IOrderShippingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单配送Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
@Service
public class OrderShippingServiceImpl implements IOrderShippingService 
{
    @Autowired
    private OrderShippingMapper orderShippingMapper;

    /**
     * 查询订单配送
     * 
     * @param id 订单配送ID
     * @return 订单配送
     */
    @Override
    public OrderShipping selectOrderShippingById(String id)
    {
        return orderShippingMapper.selectOrderShippingById(id);
    }

    /**
     * 查询订单配送列表
     * 
     * @param orderShipping 订单配送
     * @return 订单配送
     */
    @Override
    public List<OrderShipping> selectOrderShippingList(OrderShipping orderShipping)
    {
        return orderShippingMapper.selectOrderShippingList(orderShipping);
    }

    /**
     * 新增订单配送
     * 
     * @param orderShipping 订单配送
     * @return 结果
     */
    @Override
    public int insertOrderShipping(OrderShipping orderShipping)
    {
        return orderShippingMapper.insertOrderShipping(orderShipping);
    }

    /**
     * 修改订单配送
     * 
     * @param orderShipping 订单配送
     * @return 结果
     */
    @Override
    public int updateOrderShipping(OrderShipping orderShipping)
    {
        return orderShippingMapper.updateOrderShipping(orderShipping);
    }

    @Override
    public int updateOrderShippingByOrderId(OrderShipping orderShipping) {
        return orderShippingMapper.updateOrderShippingByOrderId(orderShipping);
    }

    /**
     * 删除订单配送对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteOrderShippingByIds(String[] ids)
    {
        return orderShippingMapper.deleteOrderShippingByIds(ids);
    }

    /**
     * 删除订单配送信息
     * 
     * @param id 订单配送ID
     * @return 结果
     */
    @Override
    public int deleteOrderShippingById(String id)
    {
        return orderShippingMapper.deleteOrderShippingById(id);
    }
}
